#ifndef __ADC0808_H__
#define __ADC0808_H__

 
sfr AUXR = 0x8e;
unsigned int shuju;
unsigned char dat;  
sbit clock = P3^4;
sbit OE = P3^7;
sbit EOC = P3^6;
sbit START = P3^5;

void timer1_isr()interrupt 3
{
	clock = ~clock;
}

void getData()
{ 	 
	OE = 0;
	START = 0;START = 1;START = 0;
	while(EOC == 0);
	OE = 1;
	shuju = P1 ;	//  
  dat	 = shuju / 50;
	OE = 0;	 
	
}


#endif